<?php
session_start();
session_destroy();
echo "You have logout the system.";
echo "The page will redirect to login page in 2 seconds.";

header("refresh:2;url=login.php");
die();
?>